<form name="topic" method="POST" action="topic_cp.php?cp=1&amp;update_reply=1&amp;id={$id}&amp;sid={$sid}">
  <div align="center">
    <br>
&nbsp;<table class="border" summary="جدول" border="1" cellspacing="1"  width="80%">
      <tr>
        <td class="thead" width="20%">الابتسامات</td>
        <td class="thead" width="80%">النص</td>
      </tr>
      <tr>
        <td class="row3" width="20%" rowspan="2" align="center">
        <table class="border" border="1" summary="الابتسامات"  style="width :98%">
<tr><td class="tcat" align="center">الابتسامات</td></tr>
<tr>
<td class="row1" align="center">
        {section name=idx loop=$smiles_row} <div  style=" width: 40px; height : 30px ; float:right"><img alt="" src="{$smiles_row[idx].smile_path}" OnClick="set_smile('{$smiles_row[idx].smile_short}');" border="0" /></div>{/section}
        </td>
</tr>
<tr>
<td class="row3dark" align="center">
        <a href="JavaScript:OpenWindow('new.php?smile=1');">[بقية الابتسامات]</a>
</td>
</tr>
</table>
        </td>
        {include file="toolbox.tpl"}
      </tr>
      <tr>
        <td class="row1" width="80%" colspan="2" align="center">
        عنوان الرد : <input name="T1" type="text" value="{$subject_row.title}" /><br />
        <textarea rows="12" name="S1" cols="69">{$subject_row.text}</textarea><br />
        عدد الحروف المتبقي : <input type='text' name='left' value='{$info_row.post_text_max}' size='7' class="text_box"><br /><input class="radio" type="radio" value="{$info_row.icons_path}i1.gif" name="R1" id="fp1" /><label for="fp1">بدون إيقونة</label><br />
        <input class="radio" type="radio" value="{$subject_row.icon}" checked name="R1" id="fp{$subject_row.icon}" /><label for="fp{$subject_row.icon}"><img alt="" src="{$info_row.icon_path}{$subject_row.icon}" border="0" /></label>
        {section name=idx loop=$icons_row} <input class="radio" type="radio" value="{$icons_row[idx].smile_path}" name="R1" id="fp{$icons_row[idx].id}" /><label for="fp{$icons_row[idx].id}"><img alt="" src="{$info_row.icon_path}{$icons_row[idx].smile_path}" border="0" /></label> {/section}<br />
        <input class="button" type="submit" value="موافق" name="B1"> <input class="button" type="button" value="معاينة" name="B2" onclick="preview();" />
        </td>
      </tr>
    </table>

    <br />

    <table class="border" summary="خيارات أخرى" border="1" cellspacing="1" width="80%">
      <tr>
        <td class="tcat" colspan="2">خيارات أخرى</td>
      </tr>

<tr>
<td class="thead" colspan="2">التبليغ البريدي</td>
</tr>
<tr>
<td colspan="2" class="row1"><input name="subs" class="checkbox" type="checkbox" value="1" {if $subject_row.subscribe eq 1} checked {/if}/> التبليغ بوجود ردود على هذا الموضوع<br /></td>
</tr>
      <tr>
        <td class="thead" colspan="2">المرفقات</td>
      </tr>
      <tr>
        <td colspan="2" align="center" class="row3"><a href="JavaScript:OpenWindow('attachments.php?temp_={$temp}&subject_id={$subject_row.id}&reply=1');">إدارة المرفقات</a></td>
      </tr>
    </table>
  </div>
</form>
<br />